import request from '@/utils/request';
export async function query() {
  return request('/api/auth');
}

export async function update(payload) {
  return request(`/api/auth/${payload.openid}`, {
    method: 'PUT',
    data: payload,
  });
}
export async function deleteAuth(payload) {
  return request(`/api/auth`, {
    method: 'DELETE',
    data: payload,
  });
}
